package com.xique.door.project.xyl.service.impl;

import com.xique.door.project.xyl.service.IXylMessageService;
import com.xique.door.project.xyl.websocket.XylWebSocketHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shd
 * @create 2021/12/28 9:07
 */
@Service
public class XylMessageServiceImpl implements IXylMessageService {

    @Autowired
    private XylWebSocketHandler handler;

    @Override
    public void sendMessage(Long parkId, String message) {
        handler.sendMessage(parkId.toString(), message);
    }
}
